<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>title</title>
</head>
<body>

<form th:action="@{/file/upload}" method="post" enctype="multipart/form-data">
    <input type="file" name="file">
    <br>
    <button>上传</button>
</form>

</body>
</html>